中华听书网[听].js 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // 搜索验证
  2. var rule = {
  3. 类型: '听书',
  4. title: '中华听书网',
  5. host: 'https://www.tingshucn.com',
  6. url: '/list/fyclass-fypage.html',
  7. searchUrl: '/search.php?page=fypage#searchword=**&searchtype=;post',
  8. searchable: 2,
  9. quickSearch: 0,
  10. headers: {
  11. 'User-Agent': 'PC_UA'
  12. },
  13. timeout: 5000,
  14. class_parse: '#news_nav&&li:has(a);a&&Text;a&&href;.*/(\\d+).html',
  15. play_parse: true,
  16. // lazy:'js:input=input.replace("www","m")',
  17. lazy: $js.toString(() => {
  18. let url = input;
  19. if (/m3u8|mp4|mp3|acc|m4a|wma|aac/.test(url)) {
  20. input = {
  21. jx: 0,
  22. url: url,
  23. parse: 0
  24. }
  25. } else {
  26. input = inputurl
  27. }
  28. }),
  29. limit: 6,
  30. 图片来源: '@Referer=https://www.tingshucn.com',
  31. 推荐: '.layout_right:eq(1)&&li;*;*;em&&Text;*',
  32. 一级: '.listBox&&li;img&&alt;img&&src;p:eq(0)&&span&&Text;a&&href',
  33. 二级: {
  34. title: 'h3&&Text;.webzi_top&&li:eq(4)&&Text',
  35. img: '.pic&&img&&src',
  36. desc: '.webzi_top&&li:eq(1)&&span&&Text;;;.webzi_top&&li:eq(3)&&Text;.webzi_top&&li:eq(2)&&Text',
  37. content: '#idDIV--a&&Text',
  38. tabs: '.content_jrtop:eq(0)&&li',
  39. lists: '.videourl:eq(#id)&&li'
  40. },
  41. 搜索: '*',
  42. }